package cn.gift.mapper;

import cn.gift.domain.Tenant;
import cn.gift.query.TenantQuery;
import cn.gift.vo.result.TenantVo;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.plugins.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author ZhaoLc
 * @since 2023-04-24
 */
@Mapper
public interface TenantMapper extends BaseMapper<Tenant> {

    List<TenantVo> loadPageList(@Param("page") Page<TenantVo> page,@Param("query") TenantQuery query);

    void saveTenantMeal(@Param("tenantId") Long id,@Param("mealId") Long mealId);
}
